package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.system.domain.IntoWare;
import com.ruoyi.system.domain.PurchaseRecord;
import com.ruoyi.system.domain.Warehousing;

/**
 * 入库单Service接口
 * 
 * @author ruoyi
 * @date 2021-05-08
 */
public interface IWarehousingService 
{
    /**
     * 查询入库单
     * 
     * @param id 入库单ID
     * @return 入库单
     */
    public Warehousing selectWarehousingById(Long id);

    /**
     * 查询入库单列表
     * 
     * @param warehousing 入库单
     * @return 入库单集合
     */
    public List<Warehousing> selectWarehousingList(Warehousing warehousing);

    /**
     * 新增入库单
     * 
     * @param warehousing 入库单
     * @return 结果
     */
    public int insertWarehousing(Warehousing warehousing);

    /**
     * 修改入库单
     * 
     * @param warehousing 入库单
     * @return 结果
     */
    public int updateWarehousing(Warehousing warehousing);



    public int deleteWarehousingById( Warehousing warehousing);

    //查询入库单
    List<Warehousing> selectQueryWarehousing(Warehousing warehousing);

    //查询出库单详情
    public Warehousing selectOutingById(Long id);


    //入库
    int intoWare(IntoWare[] intoWare);

    //出库
    int outWare(IntoWare[] intoWare);

    //删除单条材料
    int delete( PurchaseRecord purchaseRecord);
}
